Limit the range X.
Change X to stay within [Low,High] range. In this case the parameters are integers.
EnsureRange, CheckRange
LimitRange Method